import request from '@/utils/request'


// 获取订单列表
export function getFlightOrder(query) {
    return request({
        url:'/order/list',
        method: 'get',
        params: query
    })
}

// 申请退票
export function refund(data) {
    return request({
        url:'/order/refund',
        method: 'put',
        data
    })
}

// 申请改期
export function change(data) {
    return request({
        url:'/order/change',
        method: 'put',
        data
    })
}

// 获取改期中的订单列表
export function getChangeList(query) {
    return request({
        url:'/order/changeList',
        method: 'get',
        params: query
    })
}
